# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=muacme
pkgver=0.5.1
pkgrel=0
pkgdesc="A convenient wrapper for the ACMEv2 client uacme"
url="https://github.com/jirutka/muacme"
arch="noarch"
license="MIT"
depends="uacme openssl"
install="$pkgname.pre-upgrade $pkgname.post-upgrade"
options="!check"  # no tests provided
source="https://github.com/jirutka/muacme/archive/v$pkgver/$pkgname-$pkgver.tar.gz
	muacme-renew-all.crond
	"

package() {
	make install DESTDIR="$pkgdir" prefix=/usr

	install -m 755 -D "$srcdir"/muacme-renew-all.crond \
		"$pkgdir"/etc/periodic/weekly/muacme-renew-all

	install -d -m 755 "$pkgdir"/etc/ssl/uacme
}

sha512sums="
f1ee75f7208fc477d3b6adda7a83ad04b7c0a293e0d50c640a635db4599b1e1eaa53c9fe7e6be61b52419e534ee2e65e6533fab6e8dd7be5d1ae2011f486495d  muacme-0.5.1.tar.gz
37082df7ebd8b6ef3f683509b6d3852c6f56bb6903a90bb12b7fa116003e539617e2863abb600ad3484bcc8f2bc537e9d1a172573e6cf73e87983050b5d623bc  muacme-renew-all.crond
"
